﻿namespace Language.Stub
{
    public partial class PositionContext
    {
        public void Set( comm.PositionContext source )
        {
            Start = source.start;
            End = source.end;
        }
    }

    public partial class Context
    {
        public void Set( comm.StandardContext source )
        {
            File = source.file;
            Line = source.line;
        }
    }

    public partial class DetailedContext
    {
        public void Set( comm.DetailedContext source )
        {
            Set( source.standard );
            Position.Set( source.position );

            LineStart = source.lineStart;
        }
    }

    public partial class NameContext
    {
        public void Set( comm.NameContext source )
        {
            Set( source.detailed );

            Name = source.name;
        }
    }

    public partial class TypedContext
    {

    }

    public partial class Scope
    {
        public void Set( comm.Scope source )
        {
            Start.Set( source.start );
            End.Set( source.end );
        }
    }

    public partial class Configuration
    {
        public void Set( byte source )
        {
            Flags = (Flag)source;
        }
    }
}
